package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.User;
import pojo.Vehicle;
import vo.*;

import java.util.List;

/**
 * @BelongsProject: gxcwhd
 * @BelongsPackage: com.example.user.dao
 * @Author: huan
 * @CreateTime: 2020-08-14 10:18
 * @Description:
 */
public interface UserMapper {

    public Integer addUser(User user);

    public User queryByUsernameAndPhone(RegisterVo registerVo);

    public User userLogin(LoginVo loginVo);

    User getUserInfoById(String userId);

    List<PropertyVo> getAllProperty();

    UserInfoVo getUserDetailInfo(String userId);

    Integer changePassword(@Param("userId") String userId, @Param("loginVo") LoginVo loginVo);

    Vehicle getUserVehicleInfo(String userId);

    List<CommentVo> getParkingCommentById(String parkingId);

    Integer addUserInfo(User user);

    List<CommentVo> getChildrenComment(String commentId);

    Integer addVehicleInfo(Vehicle vehicle);

    Integer updateVehicleInfo(Vehicle vehicle);

    Integer changeUserDetailInfo(UserInfoVo userInfoVo);

    List<CommentVo> getNoReadByUserId(String userId);

    Integer updateCommentStatus(String userId);

    Integer replyComment(CommentVo commentVo);
}
